package com.example.service.configuration.impl;

import com.example.bean.configuration.PingGuMoBan;
import com.example.bean.configuration.vo.PingGuMoBanVo;
import com.example.mapper.configuration.PingGuMoBanMapper;
import com.example.service.configuration.PingGuMoBanService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PingGuMoBanServiceImpl implements PingGuMoBanService {
    @Autowired
    PingGuMoBanMapper mapper;

    @Override
    public PageInfo<PingGuMoBan> getpage(PingGuMoBanVo vo) {
        PageHelper.startPage(vo.getDqNum(),vo.getXsNum());
        PageInfo<PingGuMoBan> page = new PageInfo<PingGuMoBan>(mapper.getpage(vo));
        return page;
    }

    @Override
    public Integer addpinggumoban(PingGuMoBan pingGuMoBan) {
        return mapper.addpinggumoban(pingGuMoBan);
    }

    @Override
    public PingGuMoBan getId(String aid) {
        return mapper.getId(aid);
    }

    @Override
    public Integer xiugai(PingGuMoBan pingGuMoBan) {
        return mapper.xiugai(pingGuMoBan);
    }

    @Override
    public Integer qidong(String noid) {
        return mapper.qidong(noid);
    }

    @Override
    public Integer jinyong(String noid) {
        return mapper.jinyong(noid);
    }

    @Override
    public int dels(List<String> ids) {
        return mapper.dels(ids);
    }

    @Override
    public List<PingGuMoBan> moban() {
        return mapper.moban();
    }
}
